<div class="grid_4">
	<div class="da-panel collapsible">
		<div class="da-panel-header">
			<span class="da-panel-title"> <img
				src="images/icons/black/16/list.png" alt="" /> Setting
				<a style="float: right; margin-right:10px" href="<?php echo ROOT_URL.$this->url(array('controller'=>'setting','action'=>'create','module'=>'admin'))?>" class="da-button green" >Create new setting</a>
			</span>
			
		</div>
		<div class="da-panel-content">
			<table class="da-table">
				<thead>
					<tr>
						<th></th>
						<th><b>Name</b></th>
						<th><b>Value</b></th>
						<th><b>Status</b></th>
						<th><b>Options</b></th>
					</tr>
				</thead>
				<tbody>
					<?php if(count($this->Settings)>0){?>
						<?php foreach ($this->Settings as $key=>$Setting){?>
							<tr>
								<td><input type="checkbox" /></td>
								<td><?php echo $key;?></td>
								<td><?php echo $Setting->value?></td>
								<td><?php echo ($Setting->status==1) ? 'Enabled' : 'Disabled'?></td>
								<td class="da-icon-column">
									<a href="<?php echo ROOT_URL.$this->url(array('controller'=>'setting','action'=>'edit','module'=>'admin','id'=>$Setting->id))?>"><img src="<?php echo TEMPLATE_URL?>/admin/images/icons/color/pencil.png" /></a>
									<a href="<?php echo ROOT_URL.$this->url(array('controller'=>'setting','action'=>'delete','module'=>'admin','id'=>$Setting->id))?>"><img src="<?php echo TEMPLATE_URL?>/admin/images/icons/color/cross.png" /></a>
								</td>
							</tr>
						<?php }?>
					<?php }?>
				</tbody>
			</table>
		</div>
	</div>
</div>